home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group99a.txt / 000186_icon-group-sender _Tue Sep 7 16:58:37 1999.msg < prev    next >
Internet Message Format  |  2000-09-20  |  4KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id QAA07136
  4.     for icon-group-addresses; Tue, 7 Sep 1999 16:57:41 -0700 (MST)
  5. Message-Id: <199909072357.QAA07136@baskerville.CS.Arizona.EDU>
  6. From: "Bob Alexander" <bobalex@ix.netcom.com>
  7. To: "Garry" <memphis@macconnect.com>, <icon-group@optima.CS.Arizona.EDU>
  8. Subject: Re: Is open(..,"b") broken in MPW Icon 9.0?
  9. Date: Thu, 2 Sep 1999 20:26:54 -0700
  10. X-Priority: 3
  11. X-MSMail-Priority: Normal
  12. X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
  13. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  14. Status: RO
  15.  
  16. I'm the author of MPW Icon, and as far as I know it hasn't been maintained
  17. since my last update. I don't remember exactly when that was, but it's been
  18. at least, I'd guess, 3 years. That version was very solid, although I don't
  19. know what's happened with MPW since then. Last I knew they were talking
  20. about dropping official support and releasing the source code. Currently,
  21. I'm more involved with the dark side and seem to only have Windows boxes
  22. around, so I can't really even check your bug. So... all I'm offering is
  23. sympathy.
  24.  
  25. I really enjoyed using MPW and Icon together -- Icon's a great language and
  26. they are a natural pair!
  27.  
  28. I personally never used the "b" option. There weren't any any complaints
  29. about it (until now), but then the intersection of MPW users and "b" option
  30. users is probably pretty sparse  :-)
  31.  
  32. The MPW Icon source code is available, and the Icon open() function
  33. translates to a variant of fopen(). Check the source code to see what
  34. fopen() option it uses, and then either:
  35.  
  36.   - change it to something that works with MPW (if possible) and rebuild.
  37.   - stick with the copy method you're using now.
  38.  
  39. I would guess that it is trying to use an fopen() option that works under
  40. Unix but not under MPW.
  41.  
  42. Sorry I can't offer any real support on this. Feel free to ask any more
  43. questions you may have -- I'll do my best to answer.
  44.  
  45. -- Bob
  46.  
  47.  
  48. ----- Original Message -----
  49. From: Garry <memphis@macconnect.com>
  50. To: <icon-group@optima.CS.Arizona.EDU>
  51. Sent: Thursday, September 02, 1999 7:53 AM
  52. Subject: Is open(..,"b") broken in MPW Icon 9.0?
  53.  
  54.  
  55. > The most up-to-date Icon available for the Macintosh MPW environment is
  56. > version 9.0, which I think may have been implemented by Bob Alexander
  57. > (email address?). I've implemented most of an outline processor / note
  58. > organizer for MPW using Icon; maybe I'll proceed to try using it for
  59. > keeping source code in outline form, BUT after more than a month of fun
  60. > with Icon I've run into a problem!!  I can't open a file for update
  61. > (read/write).  When I follow the Icon practice of opening my file with
  62. > "b" mode I find that I can read it but I can not write to the file.  For
  63. > example if I execute
  64. >    f := open( "Testfile", "b" )
  65. >    seek( f )
  66. >    writes( f, "**" )
  67. > where "Testfile" is a small test file created previously, then I get the
  68. > message
  69. >    Run-time error 214
  70. >    input/output error
  71. >
  72. > I've tried specifying "r+" mode or "b+r" or "ub" mode without success.
  73. > As a test I opened the same file in "w" mode and proved that I was able
  74. > to write it (destroying the previous contents) but I can not find a way
  75. > to write to random locations.
  76. >
  77. > BTW, is any progress being made on Icon 9.3 for Macintosh?
  78. >
  79. > Advice, or just sympathy, will be appreciated.  Right now my fall-back
  80. > solution is to rewrite the entire file just to update the 8 bytes which
  81. > holds my note ID counter.
  82. >
  83. > --
  84. > Garry
  85. > Tech Writer & Freelance Programmer
  86. >
  87. >
  88.  
  89.